package com.yitong.equipment.entity.other

import android.os.Parcel
import android.os.Parcelable

class CategoryTwoArrayBean() :Parcelable {
     var name: String? = null
     var imgsrc: String? = null
     var cacode: String? = null

     constructor(parcel: Parcel) : this() {
          name = parcel.readString()
          imgsrc = parcel.readString()
          cacode = parcel.readString()
     }

     override fun writeToParcel(parcel: Parcel, flags: Int) {
          parcel.writeString(name)
          parcel.writeString(imgsrc)
          parcel.writeString(cacode)
     }

     override fun describeContents(): Int {
          return 0
     }

     override fun toString(): String {
          return "CategoryTwoArrayBean(name=$name, imgsrc=$imgsrc, cacode=$cacode)"
     }

     companion object CREATOR : Parcelable.Creator<CategoryTwoArrayBean> {
          override fun createFromParcel(parcel: Parcel): CategoryTwoArrayBean {
               return CategoryTwoArrayBean(parcel)
          }

          override fun newArray(size: Int): Array<CategoryTwoArrayBean?> {
               return arrayOfNulls(size)
          }
     }



}